package com.xueyiyue.xueyiyue.model.sys;

import lombok.Getter;

/**
 * api返回的code定义
 *
 * @author wenqi
 * @since v1.1
 */
@Getter
public enum CodeSupport {

    SUCCESS(200,"成功"),
    UNAUTHORIZED(401,"授权失败"),
    FAIL(500,"失败");

    private int code;

    private String desc;

    CodeSupport(int code, String desc){
        this.code=code;
        this.desc=desc;
    }
}
